using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Monster_Weapon : MonoBehaviour
{
    float hurt;
    int dir;
    void Start()
    {
        dir = 1;
        hurt = 0;
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    private void OnTriggerEnter2D(Collider2D other)
    {
        if (other.tag == "player")
        {
            other.GetComponent<Player_Control>().Be_attack(dir,hurt);
        }
    }
    public void AddHurt(int d,float h)
    {
        dir = d;
        hurt = h;
    }
}
